package cn.stylefeng.guns.modular.basic.mapper;

import cn.stylefeng.guns.modular.basic.entity.BasicLine;
import cn.stylefeng.guns.modular.basic.model.params.BasicLineParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicLineResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 项目线路表 Mapper 接口
 */
public interface BasicLineMapper extends BaseMapper<BasicLine> {

    /**
     * 获取列表
     */
    List<BasicLineResult> customList(@Param("paramCondition") BasicLineParam paramCondition);

    /**
     * 获取map列表
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BasicLineParam paramCondition);

    /**
     * 获取分页实体列表
     */
    Page<BasicLineResult> customPageList(@Param("page") Page page, @Param("paramCondition") BasicLineParam paramCondition, @Param("condition") String condition,@Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BasicLineParam paramCondition);

	List<BasicLineResult> findListBySpec(@Param("paramCondition")BasicLineParam param,@Param("operateId")Long operateId);

    List<BasicLineResult> listByOperateId(@Param("operateId")Long operateId);



	BasicLineResult findBySpec(@Param("paramCondition")BasicLineParam param,@Param("operateId")Long operateId);

	List<BasicLineResult> sumfindListBySpec(@Param("paramCondition")BasicLineParam param);

    BasicLineResult findByName(@Param("name") String name, @Param("operateId")Long operateId);

}
